package feng.process.api;

import java.sql.SQLException;

import org.apache.log4j.Logger;

import feng.process.api.bean.ParamTaskDealBean;
import feng.process.api.service.TaskDealService;

/**
 * 环节操作类
 * @author 冯昌硕
 * @create 2012-10-25 上午12:27:57
 */
public class TaskManager {

    private static final Logger log = Logger.getLogger(ProcessManager.class);
    
    private TaskDealService service;
    
    public TaskManager() throws Exception {
        service = new TaskDealService();
    }
    
    /**
     * 功能：完成当前环节，进入下一环节
     * @param ptaskDealBean
     * @return
     * @throws SQLException 
     * @create 2012-10-25 上午12:32:20
     */
    public boolean finishCurrentTask(ParamTaskDealBean ptaskDealBean) {
        log.debug("环节处理，参数：ptaskDealBean=["+ ptaskDealBean +"]");
        return service.finishCurrTask(ptaskDealBean);
    }
}
